package yo.latyoo.hokage.tools.route;


import yo.latyoo.hokage.tools.route.impl.RouteFirst;
import yo.latyoo.hokage.tools.route.impl.RouteRandom;

public enum RouteEnum {

    FIRST("第一个执行", new RouteFirst()),
    RANDOM("随机执行", new RouteRandom()),
    SHARDING_BROADCAST("分片广播执行",null);


    RouteEnum(String title, ExecutorRoute route) {
        this.title = title;
        this.route = route;
    }

    private String title;
    private ExecutorRoute route;

    public String getTitle() {
        return title;
    }

    public ExecutorRoute getRoute() {
        return route;
    }
}
